home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_563 / kpri / src.lzh / defs.h < prev    next >
C/C++ Source or Header  |  1991-10-28  |  2KB  |  94 lines

  1.  
  2. #include <macros.h>
  3. #include <exec/types.h>
  4. #include <exec/nodes.h>
  5. #include <exec/lists.h>
  6. #include <exec/memory.h>
  7.  
  8. #include <dos/dos.h>
  9. #include <workbench/startup.h>
  10.  
  11. #include <intuition/screens.h>
  12. #include <intuition/intuition.h>
  13. #include <intuition/gadgetclass.h>
  14.  
  15. #include <libraries/asl.h>
  16. #include <libraries/gadtools.h>
  17.  
  18. #include <clib/exec_protos.h>
  19. #include <clib/intuition_protos.h>
  20. #include <clib/gadtools_protos.h>
  21. #include <clib/graphics_protos.h>
  22. #include <clib/asl_protos.h>
  23. #include <clib/alib_protos.h>
  24.  
  25.  
  26. #define GAD_pagesize     0
  27. #define GAD_linelength   1
  28. #define GAD_split        2
  29. #define GAD_title        3
  30. #define GAD_automatic    4
  31. #define GAD_filereq      5
  32. #define GAD_quit         6
  33. #define GAD_storage_list 7
  34. #define GAD_storage_str  8
  35. #define GAD_print_it     9
  36. #define GAD_forget_it    10
  37.  
  38. #define NG_pagesize      (NGAry + GAD_pagesize)
  39. #define NG_linelength    (NGAry + GAD_linelength)
  40. #define NG_split         (NGAry + GAD_split)
  41. #define NG_title         (NGAry + GAD_title)
  42. #define NG_automatic     (NGAry + GAD_automatic)
  43. #define NG_filereq       (NGAry + GAD_filereq)
  44. #define NG_quit          (NGAry + GAD_quit)
  45. #define NG_storage_list  (NGAry + GAD_storage_list)
  46. #define NG_storage_str   (NGAry + GAD_storage_str)
  47. #define NG_print_it      (NGAry + GAD_print_it)
  48. #define NG_forget_it     (NGAry + GAD_forget_it)
  49.  
  50. #define WIN_WIDTH    444
  51. #define WIN_HEIGHT   160
  52.  
  53. #define CANCEL       0
  54. #define ALL          2
  55. #define ODD          FALSE
  56. #define EVEN         TRUE
  57. #define MPC          (MEMF_PUBLIC | MEMF_CLEAR)
  58. #define MIN_BUF_SIZE (136 * 88)  /*  max_page_size */
  59. #define MAXPATH      128
  60. #define NULPTR       ((void *)0L)
  61.  
  62.  
  63. #define PREF struct Preferences
  64. #define DATE struct DateStamp
  65. #define FIB  struct FileInfoBlock
  66. #define FL   struct FileLock
  67. #define FH   struct FileHandle
  68. #define PE   struct PriEnv
  69. #define RM   struct Remember
  70.  
  71. struct PriEnv
  72. {
  73.   struct  Node pe_node;
  74.   LONG   *memory;
  75.  
  76.   FH     *Handle;
  77.   UBYTE  *FullName;
  78.   UBYTE  *SplitBuffer;
  79.   LONG    Size;
  80.   SHORT   pagenum;
  81.   SHORT   pagesize;
  82.   SHORT   linelength;
  83. };
  84.  
  85.  
  86. #define VER       {'$','V','E','R',':',' ' }
  87.  
  88. #define toggle(x) x = (x == 0)
  89.  
  90. #define Prototype extern
  91.  
  92. #include "protos.h"
  93.  
  94.